package com.liu.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author LIU
 * @version 1.0
 * @description TODO
 * @date 2024/3/15 11:47
 *
 *
 * @ApiModel 用在模型类上,对模型类作注解
 * @ApiModelProperty 用在属性上,对属性作注解
 */
@ApiModel("User VO模型")
public class User {
    @ApiModelProperty(value="姓名",example = "张三")
    private String name;
    @ApiModelProperty(value="年龄",example = "30")
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
